package com.hup.utils.swing.customView;

import lombok.extern.log4j.Log4j2;

import javax.swing.*;
import java.awt.*;

/**
 * @author hugan
 * @date 2019/9/8
 */
@Log4j2
public class HintTextField extends JTextField implements BaseHintText {

    public HintTextField() {
        initHintListener();
    }

    @Override
    public void paint(Graphics g) {
        //paint.st -> paintComponent.st,ed -> paint.st
        super.paint(g);
        paintHint(this, g);
    }
}
